package View;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class MenuCliente extends javax.swing.JFrame {
	private static String titulo = "Menu Cliente";
	private JButton AltaCliente;
	private JButton ModificarCliente;
	private JButton jButton1;
	private JButton EliminarCliente;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				MenuCliente inst = new MenuCliente();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public MenuCliente() {
		super(titulo);
		initGUI();
	}
	
	private void initGUI() {
		try {
			setSize(800, 600);
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				
				AltaCliente = new JButton();
				getContentPane().add(AltaCliente);
				AltaCliente.setText("AltaCliente");
				AltaCliente.setBounds(47, 19, 144, 23);
				AltaCliente.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						Alta alt = new Alta();
						alt.setVisible(true);
						dispose();
						}
				});
			}
			{
				ModificarCliente = new JButton();
				getContentPane().add(ModificarCliente);
				ModificarCliente.setText("ModificarCliente");
				ModificarCliente.setBounds(47, 63, 144, 23);
				ModificarCliente.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						ModificarCliente mclnt = new ModificarCliente();
						mclnt.setVisible(true);
						dispose();
					}
				});
			}
			{
				EliminarCliente = new JButton();
				getContentPane().add(EliminarCliente);
				EliminarCliente.setText("EliminarCliente");
				EliminarCliente.setBounds(47, 111, 144, 23);
				EliminarCliente.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						BajaCliente bc = new BajaCliente();
						bc.setVisible(true);
						dispose();
					}
				});
			}
			{
				jButton1 = new JButton();
				getContentPane().add(jButton1);
				jButton1.setText("Volver Al Menu Principal");
				jButton1.setBounds(29, 182, 178, 23);
				jButton1.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						
						dispose();
					}
				});
			}
			pack();
			this.setSize(252, 254);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
